package com.atguigu.springcloud;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import org.springframework.core.env.ConfigurableEnvironment;

/**
 * Created by ZeroV on 2018/11/6.
 */
@SpringBootApplication
@EnableEurekaServer
public class Config_Git_EurekaServerApplication_76001 {
    private static final Logger logger = LoggerFactory.getLogger(Config_Git_EurekaServerApplication_76001.class);

    public static void main(String[] args) {
        ConfigurableEnvironment environment = SpringApplication.run(Config_Git_EurekaServerApplication_76001.class, args).getEnvironment();
        logger.info(" \n http://eureka7001.com:{}/", environment.getProperty("server.port"));
    }
}
